<template>
  <div class="list-item">
    <div class="item-left">
      <img :src="detail.icon" alt="" />
      <div class="item-info">
        <div class="info-title">{{ detail.title }}</div>
        <div class="info-desc">{{ detail.desc }}</div>
      </div>
    </div>
    <div class="look">查看文档</div>
  </div>
</template>
<script setup>
import { defineProps } from "vue";

const props = defineProps({
  detail: {
    type: Object,
    default: () => {},
  },
});
</script>

<style lang="less" scoped>
.list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;

  .item-left {
    display: flex;
    align-items: center;
    img {
      width: 40px;
      height: 40px;
      margin-right: 16px;
    }
    .item-info {
      .info-title {
        font-size: 16px;
        margin-bottom: 5px;
      }
      .info-desc {
        font-size: 12px;
        color: #808080;
      }
    }
  }
  .look {
    color: #4a90e2;
    font-size: 12px;
    width: 72px;
    height: 28px;
    border: 1px solid #4a90e2;
    line-height: 28px;
    text-align: center;
    margin-top: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}
</style>
